/*
 *
 * Copyright (c) 2023 - future
 * @author fzh
 * @email e_341877120_mail@163.com
 * @link https://mvnrepository.com/search?q=io.github.xrfzh.cn
 *
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package cn.xrfzh.system.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ResultEnum {

	/**
	 * 执行成功
	 */
	SUCCESS(10000, "执行成功"),

	/**
	 * 执行失败
	 */
	ERROR(50000, "执行失败"),

	/**
	 * 参数错误
	 */
	PARAMETER_ERROR(50001, "参数错误"),

	/**
	 * 请先登录，通过身份认证
	 */
	UNAUTHENTICATED(50002, "请先登录，通过身份认证！"),

	/**
	 * 认证失败
	 */
	AUTH_FAIL(50003, "认证失败"),

	/**
	 * Token异常
	 */
	TOKEN_PAST(50004, "Token异常"),

	/**
	 * 令牌错误
	 */
	TOKEN_ERROR(50005, "令牌错误"),

	/**
	 * 请求头错误
	 */
	HEADER_ERROR(50006, "请求头错误"),

	/**
	 * 尚未分配角色
	 */
	NOT_ROLE(50007, "尚未分配角色"),

	/**
	 * 重复提交
	 */
	REPEAT_SUBMIT(50008, "重复提交"),

	/**
	 * 权限不足
	 */
	UNAUTHORIZED(50009, "权限不足，请联系管理员！");

	private final Integer code;

	private final String desc;

}
